﻿using System;

/// <summary>
/// 时间单位
/// </summary>
public enum TimeUnit
{
    MS,
    S,
    M,
    H,
    D
}
/// <summary>
/// 游戏中的计时任务对象
/// </summary>
public class TimerTask
{
    /// <summary>
    /// 此任务的id
    /// </summary>
    public int tid;
    /// <summary>
    /// 此任务要延迟多少时间执行,单位:ms
    /// </summary>
    public double delay;
    /// <summary>
    /// 累加值,此任务要走到那一刻后执行
    /// </summary>
    public double desTime;
    /// <summary>
    /// 此任务要执行的次数,-1表示无限循环执行
    /// </summary>
    public int doCount;
    /// <summary>
    /// 任务委托
    /// </summary>
    public Action callback;
}
